package com.credithc.signature.common.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "seal_apply_info")
public class SealApplyInfoDTO {

	@Column(name="ID")
	private String id;

	@Column(name="TYPE")
	private Integer type;

	@Column(name="ORGANIZATION_ID")
	private String organizationId;

	@Column(name="SEAL_CODE")
	private String sealCode;

	@Column(name="SEAL_PASSWORD")
	private String sealPassword;

	@Column(name="USER_NAME")
	private String userName;

	@Column(name="IDENTIFICATION_TYPE")
	private String identificationType;

	@Column(name="IDENTIFICATION_NO")
	private String identificationNo;

	@Column(name="SEAL_FLAG")
	private Integer sealFlag;

	@Column(name="CERT_DN")
	private String certDn;

	@Column(name="CERT_SN")
	private String certSn;

	@Column(name="CERT_STATUS")
	private Integer certStatus;

    @Column(name="SEAL_STATUS")
    private Integer sealStatus;

	@Column(name="NOT_BEFORE")
	private Date notBefore;

	@Column(name="NOT_AFTER")
	private Date notAfter;

	@Column(name="CREATE_TIME")
	private Date createTime;

	@Column(name="UPDATE_TIME")
	private Date updateTime;

    public SealApplyInfoDTO() {
    }

    public SealApplyInfoDTO(String id, int type, String organizationId, String sealCode, String sealPassword, String userName, String identificationType, String identificationNo, int sealFlag, String certDn, String certSn, int certStatus, int sealStatus,Date notBefore, Date notAfter, Date createTime, Date updateTime) {
        this.id = id;
        this.type = type;
        this.organizationId = organizationId;
        this.sealCode = sealCode;
        this.sealPassword = sealPassword;
        this.userName = userName;
        this.identificationType = identificationType;
        this.identificationNo = identificationNo;
        this.sealFlag = sealFlag;
        this.certDn = certDn;
        this.certSn = certSn;
        this.certStatus = certStatus;
        this.sealStatus = sealStatus;
        this.notBefore = notBefore;
        this.notAfter = notAfter;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public SealApplyInfoDTO(String id, String sealCode, String sealPassword, String userName, String identificationType, String identificationNo, Date notBefore, Date notAfter, Date createTime, Date updateTime) {
        this.id = id;
        this.sealCode = sealCode;
        this.sealPassword = sealPassword;
        this.userName = userName;
        this.identificationType = identificationType;
        this.identificationNo = identificationNo;
        this.notBefore = notBefore;
        this.notAfter = notAfter;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
